package com.gaga.console.core.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.gaga.common.result.Result;
import com.gaga.console.base.entity.PageParams;
import com.gaga.console.base.service.ISuperService;
import com.gaga.console.core.entity.SysUser;

import java.util.HashSet;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author liujia
 * @since 2022-05-19
 */
public interface SysUserService extends ISuperService<SysUser> {

    /**
     * 登录
     * @param username
     * @param password
     * @return
     */
    Result login(String username, String password);


    /**
     * 获取用户信息
     * @return
     */
    Result getUserInfo();

    /**
     * 单独获取权限信息
     * @return
     */
    HashSet<String> getPermissionList();

    boolean customSave(SysUser entity);

    IPage<SysUser> customPageList(PageParams<SysUser> data);
}
